package com.huawei.appgallery.assistantdock.gamemode.card;

import android.content.Context;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import o.azc;
import o.beo$d;
import o.beo.f;
import o.bif.d;
import o.bif.i;
import o.bii;
import o.bip;
import o.biu;
import o.ContentManager;
import o.fam;

public class GameAccelerateEnterCardBuoy extends BuoyBaseEnterCard {
    public GameAccelerateEnterCardBuoy(Context context) {
        super(context);
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        this.ˊ.setText(f.ˋˊ);
        this.ॱ = bii.ˎ() == i.PERFOR_MODE;
        ॱॱ();
    }

    public void ˋ() {
        this.ॱ = !this.ॱ;
        ॱॱ();
        i iVar = this.ॱ ? i.PERFOR_MODE : i.BALANCE_MODE;
        String str = this.ॱ ? "STATE2" : "STATE1";
        bii.ˋ(iVar);
        if (biu.ˋ().ॱ() && this.ॱ) {
            Context ॱ = azc.ॱ(ContentManager.getInstant().getContext());
            fam.ॱ().ॱ(ॱ, new bip(ॱ));
            biu.ˋ().ˏ();
        }
        ʻ();
        ˏ(str);
    }

    void ॱॱ() {
        this.ʼ.setBackgroundResource(this.ॱ ? beo$d.ॱʻ : beo$d.ॱʽ);
    }

    String ᐝ() {
        return d.GSS_POWER_SAVING_MDOE.ˊ();
    }
}
